package com.it.mydream.Service.imp;

import com.it.mydream.Bean.Rank;
import com.it.mydream.Dao.RankDao;
import com.it.mydream.Service.RankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RankServiceImp implements RankService {

    @Autowired
    private RankDao rankDao;
    @Override
    public void insertRank(Rank rk) {
        rankDao.insertRank(rk);
    }

    @Override
    public void updateRank(Rank rk) {
        rankDao.updateRank(rk);
    }

    @Override
    public List<Rank> selectRanks(String type) {
        return rankDao.selectRanks(type);
    }

    @Override
    public Rank selectRank(Rank rk) {
        return rankDao.selectRank(rk);
    }
}
